package com.itelite.mapper;

import com.itelite.domain.dto.TeacherParam;
import com.itelite.domain.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/8/8-18:16
 **/
@Mapper
public interface TeacherMapper {

    List<Teacher> queryTeachers(TeacherParam teacherParam);

    Integer insertTeacher(Teacher teacher);

    Integer updateTeacherState(@Param("teacherId") Integer teacherId, @Param("state") Integer state);
}
